package com.book.service;/**
 * Created by CoolWen on 2017/5/10.
 */

import com.book.entity.Pager;
import com.book.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author CoolWen
 * @version 2017-05-10 14:34
 */
public interface StudentService {
    int addStudent(Student student);

    Student loadByStudentName(String studentName);

    Student login(String studentName, String studentPassword);

    List<Student> select();

    Pager<Student> find(String name);

    Student selectByPrimaryKey(Student student);

    int insert(Student record);

    int deleteByPrimaryKey(Integer studentId);

    int updateByPrimaryKey(Student record);

    int selectCount();

    List<Student> selectPageList(int startList, int endList);
}
